package com.mapper.auto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.model.auto.SchoolInfoV2;
import com.model.auto.SchoolV2;
import com.model.auto.vo.GetSchoolV2Vo;
import com.model.auto.vo.GetSchoolVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Mapper
@Repository
public interface SchoolInfoV2Mapper extends BaseMapper<SchoolInfoV2> {

    List<SchoolInfoV2> queryByParams(@Param("schoolVo") GetSchoolV2Vo schoolVo);

    Integer queryByTotalParams(@Param("schoolVo") GetSchoolV2Vo schoolVo);

    SchoolInfoV2 selectByCode(@Param("code") String code);

    SchoolInfoV2 selectBySchoolName(@Param("schoolName") String schoolName);
}
